| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | const xPoweredBy = require('./../../../../src/back/middlewares/xPoweredBy'); |
||
| 4 | test('Main test', () => { |
||
| 5 | /** global: jest */ |
||
| 6 | |||
| 7 | const cb = jest.fn(); |
||
| 8 | const res = { |
||
| 9 | removeHeader: jest.fn(), |
||
| 10 | }; |
||
| 11 | |||
| 12 | xPoweredBy({}, res, cb); |
||
| 13 | |||
| 14 | expect(res.removeHeader).toHaveBeenCalled(); |
||
| 15 | expect(cb).toHaveBeenCalled(); |
||
| 16 | }); |
||
| 17 | }); |
||
| 18 |